import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Boton para entrar a los scores
 * 
 * @author Sonia Monasterio y Paola Valle
 * @version 01-12-14
 */
public class Scores extends Boton
{
    /**
     * Act - do whatever the Scores wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
     private ScoreBoard records;
    public Scores()
    {
        records = new ScoreBoard(400, 400);
    }
    
    public void act()     
    {       
        if(Greenfoot.mouseClicked(this)){
            //records = 
            getWorld().addObject(records , getWorld().getWidth()/2, getWorld().getHeight()/2);
        }
    }    
}